package com.example.admin.bean;

import com.example.admin.base.BaseEntity;
import lombok.Data;

import java.util.Date;


@Data
public class CheckIn extends BaseEntity {
    private String checkInCode;

    private String title;
    private Long elderId;
    private String counselor;
    private Date checkInTime;
    private String reason;
    private String applicat;
    private String deptNo;
    private Long applicatId;
    private Integer flowStatus;
    private Integer status;
    private String otherApplyInfo;
    private String reviewInfo;
//     流程枚举
    public enum FlowStatus{
        APPLY(0, "入住申请", "养老顾问"),
        REVIEW(1, "入住评估", "护理组主管"),
        APPROVAL(2, "入住审核", "院长"),
        CONFIG(3, "入住配置", "养老顾问"),
        SIGN(4, "签约办理", "法务");
        Integer code;
        String name;
        String role;

        FlowStatus(Integer code, String name, String role){
            this.code = code;
            this.name = name;
            this.role = role;
        }
        public Integer getCode(){
            return this.code;
        }

        public String getName(){
            return this.name;
        }

        public String getRole(){
            return this.role;
        }
    }
    //状态枚举类
    public enum Status{
        APPLICATION(1),
        FINISHED(2),
        CLOSED(3);
        Integer code;
        Status(Integer code){
            this.code = code;
        }
        public Integer getCode(){
            return this.code;
        }
    }


}
